package TwoDay;

import java.util.Scanner;

public class HomeWork {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        System.out.println("scanner.hasNextDouble() = " + scanner.hasNextDouble());
        double v;
        while(scanner.hasNextDouble())
        {
            v = scanner.nextDouble();
            if(v>90) 
            {
                System.out.println("A");
            }else if(v<90 && v>80)
            {
                System.out.println("B");
            }
        }
    }
}
